package com.itheima.mapper;

import com.itheima.entity.OrderPark;
import com.itheima.entity.OrderParkDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderParkMapper {

    /**
     *  根据车场id查所有订单信息
     */
//    List<OrderPark> findAll(@Param("parkingId") Integer parkingId);

    /**
     *  根据车场id查所有订单信息
     */
    List<OrderParkDTO> selectAll(@Param("parkingId") Integer parkingId);

    void insert(@Param("orderPark") OrderPark orderPark);
}